<%@ page language="java" import="java.util.*,com.hs.core.cache.*,com.hs.auth.*,com.hs.auth.model.*" pageEncoding="utf-8"%>
<%
   String pageStr = (String)request.getAttribute("pagestr");
   List datalist = (List)request.getAttribute("datalist");
   	String pagenum = (String)request.getAttribute("pagenum");
	String pagecount = (String)request.getAttribute("pagecount");
	
	int pagenumInt = Integer.parseInt(pagenum);
	int pagecountInt = Integer.parseInt(pagecount);
	
	HsAccount accInfo = (HsAccount)request.getSession().getAttribute(AUTHConstant.USERINSESSION);
	String lang = accInfo.getCreatuser() + "";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../../include.jsp"%> 
 <script src="<%=basePath %>app/javascripts/transform.js"></script>
<script language=JavaScript>
 //题录信息
 function magaInfo(id)
{
	var pageURL = "<%=basePath %>data/magainfo.do?id=" + id;
	openwindow(pageURL,'800','600',''); 
}
//详细数据信息
 function auditInfo(id){
	var pageURL = "<%=basePath %>audit/auditlistFrame.do?id=" + id;
	openwindow(pageURL,'1000','800',''); 
    //window.location.href=pageURL;
 }
</script>
</head>
<body>
<div class="cont">
   <div class="deta_sear_list">
        <dl>
        <table border="0" cellspacing="0" cellpadding="0" class="list1">
      <tr>
        <th width="5%">序号</th>  
        <th width="15%">书籍名称</th>
        <!--th width="15%">出版社</th-->
        <th width="10%">作者</th>  
        <th width="8%" nowrap>出版日期</th>
        <th width="12%">原文分类</th>
        <th width="5%">朝代</th>
        <th width="15%">古籍中医疾病</th>
        <th width="15%">现代中医疾病</th>
        <th width="15%">现代西医疾病</th>
        <!--th width="5%">下载</th-->  
      </tr>
      
      <% if(null != datalist && datalist.size()>0){
      		for(int i =0;i<datalist.size();i++){
      			Map dm = (Map)datalist.get(i);
       %>
      <tr>
        <td align="center"><%=(pagecountInt*(pagenumInt-1))+i+1 %></td> 
        <td><a href="javaScript:magaInfo('<%=dm.get("ID")%>');"><%=dm.get("BOOKNAME") %></a></td> 
        <!--td><%=StringUtilTool.NULL2Blank(dm.get("PUBLISHHOUSE")+"") %></td-->
        <td><%=StringUtilTool.NULL2Blank(dm.get("AUTHOR")+"")%></td> 
        <td><%=StringUtilTool.NULL2Blank(dm.get("PUBLISHDATE")+"")%></td>  
        <td><%=StringUtilTool.NULL2Blank(dm.get("FIRSTCLASS")+"")%></td> 
        <td><%=StringUtilTool.NULL2Blank(dm.get("DYNASTY")+"")%></td> 
        <td><a href="javaScript:auditInfo('<%=dm.get("ID") %>')"><%=StringUtilTool.NULL2Blank(dm.get("DISEASENAME")+"") %></a></td>
        <td><%=StringUtilTool.NULL2Blank(dm.get("moddiscn")+"")%></td>
        <td><%=StringUtilTool.NULL2Blank(dm.get("moddisen")+"")%></td>
        <!--td><a href="javaScript:openwindow('<%=basePath %>search/filelist.do?id=<%=dm.get("ID")%>','500','300','')">下载</a></td-->  
       </tr>
      
      <%}%>
         <tr>
         <td colspan=10>
         <%=pageStr %> </td>
         </tr>
      
      <%}else{ %>
      <tr>
        <td align="center" colspan="10"><font color="red">没有符合查询条件的结果</font></td>
      </tr>
      <%}%>
    </table>  
    </dl>
       
   </div>
</div>
</body>
</html>
<script language="javascript" type="text/javascript">
function fonttransfer(){
  //var fontobj = window.parent.document.all.fonttype;
 // if(fontobj !=null && fontobj !=undefined){
  	//var fonttype = fontobj.value;
  	var fonttype = <%=lang%>;
  	if(fonttype == "2"){
  		document.body.innerHTML = document.body.innerHTML.s2t();
  	}else {
  		document.body.innerHTML = document.body.innerHTML.t2s();
  	}
  //}    
}
setTimeout("fonttransfer()",100);
</script>

